package newtank.view.operate;

import lombok.AllArgsConstructor;
import lombok.SneakyThrows;
import newtank.view.TankDrawingCloth;

/**
 * @author lijiahao
 * @since 2022/3/18
 */
@AllArgsConstructor
public class RepaintHandler implements OperatorHandler, Runnable {

    private final TankDrawingCloth tankDrawingCloth;

    @SneakyThrows
    @Override
    public void run() {
        tankDrawingCloth.repaint();
    }
}
